package constant

// 文件服务-用户配置文件
const (
	CustomConf = "/etc/tos/config/" // 新自定义配置目录
	//CustomConf = "Volume1/homes/" // 新自定义配置目录
	AppDesktopShowStatusFile = "AppDesktopShowStatus.json" //记录桌面总览
	QuickConnectionFile      = "QuickConnection.json"      // 用户最近访问记录文件
)

const (
	ModulesDir            = "/etc/tos/modules"
	UserAdvancePath       = "/etc/userAdvanced.conf"
	ContextToken          = "tos_verify_token"                // 上下文中传递认证状态
	ContextTryLoginUser   = "tos_login_login_username"        // 上下文中尝试登录用户名 [string]
	ContextUserName       = "tos_login_username"              // 上下文中传递用户名 [string]
	ContextRemember       = "tos_login_remember"              // 上下文中传递是否保持登录状态 [bool]
	ContextUserInfo       = "tos_login_userinfo"              // 上下文中传递用户信息 [json]
	CookieCodeName        = "tos_verify_id"                   // cookie中记录验证码id [string]
	CookieCurrentUserName = "tos_current_username"            // cookie中记录当前用户名 [string]
	AccountSecret         = "/etc/firewalld/general.conf"     // 系统帐号其它配置
	EcryptfsMount         = "/etc/tos/scripts/ecryptfs_mount" // 加密文件夹挂载
	FileManagerLog        = "/%s/@log/filemanager"            // 文件管理操作日志
	CollectConf           = "file_collect_conf"               // 收藏配置文件路径,在用户home目录下
	AccountRecordDir      = "/etc/sysconfig/Records"          // 客户端登录系统产生的记录文件

	RecentlyConf = "file_recently_conf" // 最近配置文件路径,在用户home目录下

	SysDefault  = "/etc/.default.sys" // 系统默认配置
	PageAddress = "/tos/#/share"      // 分享前端页面路由地址

	FolderNameRule = `(<|>|#|\$|\\|/|\*|,|'|\^|")` // 文件与文件夹名称规则（正则表达式）黑名单
	IgnoreFilePre  = ".tmp-"                       // 忽略文件前缀
	ThumbnailTool  = "/usr/sbin/thumbnailTool"     //

	RemoteFolderConfig = "/etc/remotefolder/remotefolder.conf" //远程挂载配置
	PromptStateFile    = "PromptState.json"                    // 用户提示状态
	DesktopFile        = "%s/homes/%s/desktop/"
)

var (
	LayoutsDate = map[string]string{
		"%Y/%m/%d": "2006/01/02",
		"%m/%d/%Y": "01/02/2006",
		"%d/%m/%Y": "02/01/2006",
		"%Y.%m.%d": "2006.01.02",
		"%m.%d.%Y": "01.02.2006",
		"%d.%m.%Y": "02.01.2006",
		"%Y-%m-%d": "2006-01-02",
		"%m-%d-%Y": "01-02-2006",
		"%d-%m-%Y": "02-01-2006",
		"%H:%M:%S": "15:04:05",
	}
	LayoutsTime = map[string]string{
		"24": "15:04:05",
		"12": "3:04:05 PM",
	}
)
